import request from '@/utils/request'

// 查询工作履历列表
export function listWorkExperience(query) {
  return request({
    url: '/profession/workExperience/list',
    method: 'get',
    params: query
  })
}

// 查询工作履历详细
export function getWorkExperience(id) {
  return request({
    url: '/profession/workExperience/' + id,
    method: 'get'
  })
}

// 新增工作履历
export function addWorkExperience(data) {
  return request({
    url: '/profession/workExperience',
    method: 'post',
    data: data
  })
}

// 修改工作履历
export function updateWorkExperience(data) {
  return request({
    url: '/profession/workExperience',
    method: 'put',
    data: data
  })
}

// 删除工作履历
export function delWorkExperience(id) {
  return request({
    url: '/profession/workExperience/' + id,
    method: 'delete'
  })
}
